/* 
   RESET
   http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
label, 
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-decoration: none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a {
    color: inherit;
}

hr {
    display: none;
}
fieldset, legend, form {
    margin: 0;
    padding: 0;
}

/* 
    DEFINE AS ÁREAS DO SISTEMA 
    topo, menu, rodape, barra lateral, etc. 
*/
body {
    background: #efefef;
}

/* div utilizada para centralizar a tela */
#externa { 
    width: 976px; /* geral(width) + geral(border) + sombraEsquerda(width) + sombraDireita(width) */
    margin: 0 auto;
}

#sombraEsquerda, #sombraDireita {
    float: left;
    width: 7px; 
    min-height: 810px; /* mudar height com javascript */
}

#sombraEsquerda {
    background: url('../img/sombra_esquerda.png') repeat-y;
}

#sombraDireita {
    background: url('../img/sombra_direita.png') repeat-y;
}

#geral {
    float: left;
    width: 960px;
    border-left: 1px solid #4A617F;
    border-right: 1px solid #4A617F;    
    font: 12px Verdana, Arial, sans-serif;    
    color: #666;
}

/*
    TOPO
    espaço em azul que inclui logo, menuSair, menuPrincipal
*/
#topo {
    float: left;
    width: inherit; /* #geral */
    height: 120px;
    background: #7287a1;
}

#topo h1 {
    float: left;
    width: 200px;
    height: 50px;
    margin: 20px 0 20px 20px;
}

#topo h1 a {
    display: block;
    width: inherit;  /* #topo h1 */
    height: inherit; /* #topo h1 */    
    background: url('../img/logo.png') no-repeat;
}

/* 
    MENUSAIR
    menu do canto superior direito 
*/
#menuSair {
    float: right;
    width: 160px;
    height: 25px;
    line-height: 25px;
    background: url('../img/bg_menu_sair.png') no-repeat;
}

#menuSair li {
    float: right;
    height: inherit; /* #menuSair */
    line-height: inherit; /* #menuSair */
    text-align: right;
}

#menuSair li.sair {background: url('../img/sair.png') no-repeat center left;}
#menuSair li.suporte {background: url('../img/suporte.png') no-repeat center left;}

#menuSair li a {
    padding: 0 12px 0 22px;
    color: #fcfcfc;
    font-weight: bold;
    text-decoration: none;
}

#menuSair li a:hover {
    text-decoration: underline;    
}

/*
    MENUPRINCIPAL
    menu que dá acesso a todas as funcionalidades do sistema
*/
#menuPrincipal {
    clear: both;
    width: inherit; /* #geral */
    height: 28px;
    line-height: 28px;    
    border-top: 1px solid #666666;
    border-bottom: 1px solid #666666;    
    background: #fff;
}

#menuPrincipal li {
    float: left;
    height: inherit;
    line-height: inherit;    
    padding: 0 15px;
    position: relative;    
}

#menuPrincipal a {
    display: block;
    font-weight: bold;
    color: #666;    
    text-decoration: none;
}

/* seta */
#menuPrincipal span {
    float: right;
    margin-right: 15px;
    font-size: 12px;    
    color: #999;
}

#menuPrincipal li:hover a, #menuPrincipal li ul li:hover a span {
    color: #0b559b;      
}

#menuPrincipal li:hover ul li a, #menuPrincipal li ul li:hover ul li a {
    color: #666;
    background: none;
}

#menuPrincipal li ul {
    margin: -3px 0 0 -10px;    
    z-index: 1;    
    box-shadow: 1.5px 1.5px 5px #999; /* VERIFICAR */
}

/* submenu do submenu */
#menuPrincipal li ul li ul {
    margin: -26px 0 0 200px;
}

#menuPrincipal li ul li {
    width: 208px;
    padding: 0;
    border-bottom: 1px solid #efefef;
    border-left: 0.5px solid #efefef;
    border-right: 0.5px solid #efefef;    
    background-color: #fcfcfc;    
}

#menuPrincipal li ul li a {
    padding-left: 5px;
}

#menuPrincipal li ul li:hover a, #menuPrincipal li ul li ul li:hover a {
    color: #0b559b;
    background-image: url('../img/submenu_hover.png');
    background-repeat: no-repeat;
    background-position: left center;       
}

#menuPrincipal li ul li:first-child {
    border-top: 0.5px solid #aaaaaa;    
}

#menuPrincipal li ul li:last-child {
    border-bottom: 0.5px solid #aaaaaa;    
}

#menuPrincipal li ul { 
    position: absolute; 
    display: none;
}

#menuPrincipal li:hover ul  {
    display: block;
}

#menuPrincipal li:hover ul li ul { 
    display: none;
}

#menuPrincipal li ul li:hover ul {    
    display: block;
}

/*
    MEIO
    sidebar e formulário
*/
#meio {
    width: inherit;  /* #geral */
    background: #fff;
}

/*
    SIDEBAR
    barra lateral esquerda com o calendário e os proximos agendamentos do usuário logado
*/
#sidebar {
    float: left;
    width: 294px;
    min-height: 660px;
    border-right: 1px solid #4A617F;
    background: url('../img/bg_barra_lateral.png') repeat-y;
}

#sidebar #espacoLivre {
    float: left;
    width: inherit;
    height: 18px;
    background-color: #4A617F;    
}

#sidebar #calendario {
    float: left;
    width: 273px;
    margin: 10px 10px 0 10px; 
    overflow: hidden;
    background: gray;
}

#sidebar #agendamentos {
    float: left;
    width: 267px;
    height: auto; /* auto */
    margin: 10px;
    padding: 2px;
    background: #FFF;
    border: 1px solid #B3B6B8;
}

#sidebar #agendamentos h2 {
    width: 265px;
    height: 28px;
    line-height: 28px;
    border: 1px solid #B3B6B8;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 1px #FFF;
    background: #E9E9E9;  
}

#sidebar #agendamentos ul {
    width: inherit;
    height: inherit;
    margin-top: 2px;
}

#sidebar #agendamentos ul li {
    width: 261px;
    max-height: 95px;
    line-height: 16px;    
    margin: 0 auto;    
    padding: 3px;
    font-size: 11.5px;
    overflow: hidden;
    text-align: justify;
}

#sidebar #agendamentos ul li.atrasado, #sidebar #agendamentos ul li.atrasado:hover {
    background: #FBE8E8;
    outline: 1px solid #9C8181;
    padding: 2px;
}

#sidebar #agendamentos ul li:hover {
    background: #EAF2F7;
    cursor: pointer;
}

#sidebar #agendamentos ul li b {
    font-weight: bold;
}

#sidebar #agendamentos ul li .dataHoraSituacao {
    color: #597498;
}

#sidebar #agendamentos ul .atrasado .dataHoraSituacao {
    color: #9C2D31;
}

/*
    FORMULARIO
    div onde os formulários dos cadastros e movimentações são mostrados
*/
#formulario {
    float: left;
    width: 645px;
    height: auto; 
    padding: 10px;
    min-height: 640px;
    background: #fff;
}

#janela {
    display: none;
    width: inherit;
    height: inherit;
    min-height: inherit;
    background: inherit;
}

#titulo {
    float: left;
    width: 625px;
    height: 25px;
    line-height: 25px;
    padding: 0 10px;
    background: #e9e9e9;
    border-radius: 5px;
}

#titulo h2 {
    float: left;
    width: 610px;    
    height: inherit;
    line-height: inherit;
    font-weight: 600;
    font-size: 16px;   
    font-variant: small-caps;
    color: #597498;
}

#titulo #fechar {
    display: block;
    float: right;
    width: 15px;
    height: inherit;    
    line-height: inherit;
    text-align: right;
    font-weight: bold;
    font-size: 10px;
    color: #666;    
}

#titulo #fechar:hover {
    color: #000;
    -moz-transition: 0.5s linear;
    -webkit-transition: 0.5s linear;    
}

#corpo {
    float: left;
    width: 645px;
    min-height: 600px;
}

/*
    FORM
    estilização dos formulários do sistema
*/
fieldset {
    float: left;
    width: 633px; /* 635px sem bordas */
    height: auto;  
    padding: 5px;
    margin-top: 10px;
    border: 1px solid #AAA;    
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;        
    background: #F5F5F5; 
}

fieldset.botoes {    
    float: none;
    width: 220px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    border: none;
}

legend {
    height: 20px;
    line-height: 20px;
    padding: 3px 5px;
    background: #6F6F6F;
    color: #F5F5F5;  
    border: solid 1px #6F6F6F;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;        
}

fieldset.botoes input { /*botões gravar e limpar*/
    width: 100px;
    text-shadow: 1px 1px 1px #fff;        
    height: 30px;            
    margin: 0;
    padding: 0;
    background: url('../img/form/bg_botao_h30.png') repeat-x;
}


label {
    float: left;
    display: block;
    margin: 5px;
}

label.fn {
    float: none;
}

label.tam1 {
    width: 50px;
}

label.tam2 {
    width: 100px;
}

label.tam3 {
    width: 150px;
}

label.tam4 {
    width: 200px; /* total */
}

label.tam5 {
    width: 250px; /* total */
}

label.tam6 {
    width: 300px; /* total */
}

label.tam7 {
    width: 350px; /* total */
}

label.tam8 {
    width: 400px; /* total */
}

form span {
    display: block;
    font-weight: bold;
    height: 18px;
    line-height: 18px;
}

form input, form select {
    width: inherit;
    height: 17px; /* verificar */
    padding: 2px;    
    color: #666;
    border-top: solid 1px #AAA;
    border-left: solid 1px #AAA;
    border-bottom: solid 1px #CCC;
    border-right: solid 1px #CCC;    
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    background-color: #fcfcfc;
}

form select {
    height: 23px;
}

form input[type="text"], form input[type="password"], textarea {
    text-transform: uppercase;
}

form input[type="text"]:focus, form input[type="password"]:focus, form select:focus {
    box-shadow: 0px 0px 4px #aaa;    
    -webkit-box-shadow: 0px 0px 4px #aaa;
    -moz-box-shadow: 0px 0px 4px #aaa;
    border-color: #999;
    background-repeat: repeat-x;
}

input[type="button"], input[type="submit"], input[type="reset"] {
    background-image: url('../img/form/bg_botao_h20.png');
    background-repeat: repeat-x;
    background-position: top;
    background-color: #F1F1F1;
    margin-top: 18px;    
    height: 23px;
}

input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover {
    border: 1px solid #999;
    color: #333;
    box-shadow: 0px 0px 1px #aaa;     
    -webkit-box-shadow: 0px 0px 1px #aaa;    
    -moz-box-shadow: 0px 0px 1px #aaa;     
    cursor: pointer;
}

input.disabled {
    background-color: #F1F1F1;
}

#PESQUISAR {    
    width: 80px;    
    margin-left: 5px;    
}

#GERARRELATORIO {
    width: 113px;        
}

/*
    TABELA DE RESULTADO DA CONSULTA
*/
form table {   
    width: 623px;
    margin: 0 auto;    
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;          
    border-collapse: collapse;
}

form table tr {
    background-color: #e9e9e9;
    height: 15px;
    line-height: 15px;
}

form table thead th {
    background-color: #c9c9c9;
    color: #FFF;
    font-size: 12px;
    font-weight: bold;
    padding: 2px;
    text-align: left;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px #999;    
}

form table .peq {
    width: 40px;
    text-align: center;
}

form table td {
    color: #666;
    padding: 3px;
    text-align: left;
    background-color: #fcfcfc;
}

form table div {
    height: 50px;    
    overflow: hidden;
}

form table tbody tr.even td {
    background-color: #f4f4f4;
}

form table tbody tr:hover td {
    background: #EAF2F7;
    cursor: pointer;
}

form table .center {
    text-align: center;
}

#rodape {
    clear: both;
    width: inherit; /* #geral */
    height: 25px;
    border-top: 5px solid #4A617F;
    background-color: #7287a1;    
}